package com.jiai.cloud.feign;

import com.baomidou.mybatisplus.plugins.Page;
import com.jiai.cloud.entity.TGoodType;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;
<<<<<<< Updated upstream

import static org.springframework.web.bind.annotation.RequestMethod.GET;
=======
>>>>>>> Stashed changes
import static org.springframework.web.bind.annotation.RequestMethod.POST;


@FeignClient("authentication")
public interface GoodTypeAPI {

    //增
    @RequestMapping(value="/api/v1/goodtype/addGoodType", produces = {"application/json;charset=UTF-8"}, method = POST)
    Object addGoodType(@RequestBody TGoodType tGoodType);

    //删
    @RequestMapping(value="/api/v1/goodtype/delete/{id}", produces = {"application/json;charset=UTF-8"}, method = POST)
    Object delete(@PathVariable("id") Integer id);

<<<<<<< Updated upstream
    //ID查
    @RequestMapping(value = "/api/v1/goodtype/findById/{id}", produces = {"application/json;charset=UTF-8"},method = GET)
    Object selectById(@PathVariable("id") Integer id);

    //查所有
    @RequestMapping(value = "/api/v1/goodtype/findByAll/{page}",method = RequestMethod.GET)
    Object selectPage(@PathVariable("page") Integer page);
=======


>>>>>>> Stashed changes

    //改(有就改，没有就插入)
    @RequestMapping(value="/api/v1/goodtype/edit", produces = {"application/json;charset=UTF-8"}, method = POST)
    @ResponseBody
    Object edit(TGoodType tGoodType);

<<<<<<< Updated upstream
=======
    //
>>>>>>> Stashed changes
}